{"version":3,"file":"image.bundle.map.js","names":["this","BX","Landing","UI","exports","main_core","landing_loc","landing_main","landing_ui_field_textfield","landing_imageuploader","landing_ui_button_basebutton","landing_ui_button_aiimagebutton","landing_pageobject","landing_env","ai_picker","Image","_TextField","babelHelpers","inherits","data","_this","classCallCheck","possibleConstructorReturn","getPrototypeOf","call","dimensions","create2xByDefault","uploadParams","onValueChangeHandler","onValueChange","type","content","contextType","CONTEXT_TYPE_CONTENT","allowClear","input","innerText","src","hidden","input2x","createInput","src2x","layout","classList","add","compactMode","disableAltField","fileInput","createFileInput","selector","addEventListener","onFileInputChange","bind","assertThisInitialized","linkInput","createLinkInput","onInputHandler","Runtime","debounce","onLinkInput","dropzone","createDropzone","onDragOver","onDragLeave","onDrop","clearButton","createClearButton","on","onClearClick","preview","createImagePreview","appendChild","style","backgroundImage","trim","onImageDragEnter","loader","Loader","target","icon","createIcon","image","createImageLayout","dataset","fileid","id","fileid2x","id2x","hiddenImage","Dom","create","props","className","Type","isPlainObject","altField","createAltField","setValue","alt","left","createLeftLayout","description","aiButton","createAiButton","onAiClick","aiPicker","uploadButton","createUploadButton","onUploadClick","editButton","createEditButton","onEditClick","right","createRightLayout","Env","getInstance","getOptions","form","createForm","enableTextOnly","window","location","toString","showDropzone","display","showPreview","addClass","makeAsLinkWrapper","children","url","Field","Link","text","href","options","siteId","Main","site_id","landingId","contentRoot","isDisabledUrl","enabled","disableLink","getValue","DOM","write","adjustPreviewBackgroundSize","uploader","ImageUploader","additionalParams","context","sizes","allowSvg","allow_svg","adjustEditButtonState","createClass","key","value","onInputInput","event","preventDefault","stopPropagation","imageHidden","remove","onFileChange","dataTransfer","files","file","showLoader","upload","then","hideLoader","err","console","error","currentTarget","getAiPicker","_this2","demoPrompt","Picker","startMessage","moduleId","contextId","getAiContext","analyticLabel","history","popupContainer","PageObject","getRootWindow","document","body","onSelect","proxyUrl","util","add_url_param","sessid","bitrix_sessid","Utils","urlToBlob","blob","lastModifiedDate","Date","name","slice","lastIndexOf","onTariffRestriction","InfoHelper","show","setLangSpace","getSiteId","bindElement","uploadMenu","MenuManager","bindOptions","forceBindPosition","items","Loc","getMessage","onclick","onUnsplashShow","onGoogleShow","onUploadShow","onLinkShow","events","onPopupClose","destroy","targetContainer","parentNode","popupWindow","toggle","rect","pos","top","bottom","close","Panel","ErrorManager","action","hideSupportLink","click","showLinkField","edit","_this3","tmpImage","onload","hide","onInputClick","isChanged","lastValue","clone","currentValue","isString","decodeDataValue","JSON","stringify","img","attrs","getBoundingClientRect","position","width","height","backgroundSize","preventEvent","removeAttribute","ext","getRandomString","innerHTML","join","fireEvent","Event","BaseEvent","compatData","emit","isStringFilled","enable","disable","reset","fileId","parseInt","isNumber","fileId2x","Object","assign","parent","ImageEditor","result","createElement","imageSrc","includes","Promise","reject","isPng","isSvg","checkSize","resolve","objectUrl","URL","createObjectURL","revokeObjectURL","maxWidth","maxHeight","allowedSizes","isArrayFilled","setSizes","length","accept","field","TextField","placeholder","html","for","BaseButton","textOnly","arguments","undefined","AiImageButton","method","enctype","submit","defineProperty","Button","AI"],"sources":["image.bundle.js"],"mappings":"AAAAA,KAAKC,GAAKD,KAAKC,IAAM,CAAC,EACtBD,KAAKC,GAAGC,QAAUF,KAAKC,GAAGC,SAAW,CAAC,EACtCF,KAAKC,GAAGC,QAAQC,GAAKH,KAAKC,GAAGC,QAAQC,IAAM,CAAC,GAC3C,SAAUC,EAAQC,EAAUC,EAAYC,EAAaC,EAA2BC,EAAsBC,EAA6BC,EAAgCC,EAAmBC,EAAYC,GAClM,aAEA,IAAIC,EAAqB,SAAUC,GACjCC,aAAaC,SAASH,EAAOC,GAC7B,SAASD,EAAMI,GACb,IAAIC,EACJH,aAAaI,eAAerB,KAAMe,GAClCK,EAAQH,aAAaK,0BAA0BtB,KAAMiB,aAAaM,eAAeR,GAAOS,KAAKxB,KAAMmB,IACnGC,EAAMK,WAAaR,aAAa,UAAUE,EAAKM,cAAgB,SAAWN,EAAKM,WAAa,KAC5FL,EAAMM,k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